package com.mysoft.gfyx.marketdevelop.mip.dto;

import lombok.Data;

import java.util.ArrayList;

@Data
public class BaseTjFilterDto {
    private String attribute_name;
    private int operate;
    private Object value;
    private String table_name;
    private int associate_previous;
    private ArrayList<BaseTjFilterDto> sub_filter;

    // 1: 等于, 2: 不等于,3: 是, 4: 不是, 5: 大于, 6: 大于等于,7: 小于，8: 小于等于，9：包含，10:不包含，11:匹配，12:不匹配
    public static final int OPERATE_EQUAL = 1;
    public static final int OPERATE_NOT_EQUAL = 2;
    public static final int OPERATE_IS = 3;
    public static final int OPERATE_NOT_IS = 4;
    public static final int OPERATE_LARGER = 5;
    public static final int OPERATE_LARGER_EQUAL = 6;
    public static final int OPERATE_LESS = 7;
    public static final int OPERATE_LESS_EQUAL = 8;
    public static final int OPERATE_CONTAIN = 9;
    public static final int OPERATE_NOT_CONTAIN = 10;
    public static final int OPERATE_LIKE = 11;
    public static final int OPERATE_NOT_LIKE = 12;

    public static final int ASSOCIATE_NONE = 0;
    public static final int ASSOCIATE_AND = 1;
    public static final int ASSOCIATE_OR = 2;
}
